package com.ronghui.cash.parambean;

import com.ronghui.cash.util.Validator;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class SendVcodeBean {
	@NotNull(message = "手机号不能为空")
	@Pattern(regexp = Validator.REGEX_MOBILE, message = "手机号格式错误")
	private String mobile;

	/**
	 * 图型验证码
	 */
	@NotNull(message = "图型验证码不能为空")
	private String imageCode;

	/**
	 * 验证码类型
	 */
	@NotNull(message = "验证码类型不能为空")
	private Integer type;

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getImageCode() {
		return imageCode;
	}

	public void setImageCode(String imageCode) {
		this.imageCode = imageCode;
	}

	/**
	 * 1登录 2注册 3找回密码
	 * 
	 * @return
	 */
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}
